package com.buchong.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buchong.mapper.CommentMapper;
import com.buchong.pojo.Comment;
import com.buchong.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class IComment extends ServiceImpl<CommentMapper ,Comment> implements CommentService {
@Autowired
private CommentMapper commentMapper;
    @Override
    public int addOne(Comment comment) {
        return commentMapper.insert(comment);
    }
}
